package com.example.oj.entity.dto.question;

import com.example.ojcommon.common.JudgeCase;
import com.example.ojcommon.common.JudgeConfig;
import lombok.Data;
import lombok.ToString;

import java.io.Serializable;
import java.util.List;

/**
 * 创建题目请求
 */
@Data
@ToString
public class QuestionSaveRequest implements Serializable {

    private Long id;

    /**
     * 题目名称
     */
    private String title;

    /**
     * 题目信息
     */
    private String content;

    /**
     * 题目标签
     */
    private List<String> tags;

    /**
     * 难度
     */
    private Integer difficulty;

    /**
     * 题目配置，时间限制ms，内存限制mb
     */
    private JudgeConfig judgeConfig;

    /**
     * 测试输入样例
     */
    private List<JudgeCase> judgeCaseList;

    /**
     * 是否比赛用题
     */
    private Integer isQueried;

    /**
     * 分数
     */
    private Integer score;

    private static final long serialVersionUID = 1L;
}